package com.itheima.controller;
/*
* 字符串截取
* */
import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入您的手机号");
        String s = sc.nextLine();
        String and = s.substring(0, 3);
        String end = s.substring(7);
        System.out.println(and+"****"+end);
    }
}
